package com.wanmait.heating.backcontroller;

import com.wanmait.heating.service.SuperService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
public class SuperController {
    @Resource
    private SuperService superService;

    /*@GetMapping("/manage/signin")
    public void signin() {}

    @PostMapping("/manage/signin")
    public String CheckSuper(String name, String password, HttpServletRequest request) {

        HttpSession session = request.getSession();
        Super superx = superService.checkLogin(name, password);
        if (superx==null) {
            return "redirect:/manage/signin";
        } else{
            session.setAttribute("Superx",superx);
            return "/manage/index";
        }
    }*/

    //弹窗  添加管理员
    @RequestMapping("/manage/admin-add")
    public void adminAdd() {

    }

    //管理员列表
    @RequestMapping("/manage/admin-list")
    public void adminList() {}

    //管理员权限管理
    @RequestMapping("/manage/admin-permission")
    public void adminPermission(){}

    //管理员角色管理
    @RequestMapping("/manage/admin-role")
    public void adminRole(){}

    //添加管理员角色
    @RequestMapping("/manage/admin-role-add")
    public void adminRoleAdd(){}

}
